﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FinModel
{
    public class Trade
    {
        public Instrument Instrument { get; set; }
        /// <summary>
        /// Long if Quantity>0, short if Quantity<0
        /// </summary>
        public double Quantity { get; set; }
        public double Price { get; set; }
        public DateTime TS { get; set; }
        public TradeType Type { get; set; }
    }

    public enum TradeType
    {
        /// <summary>
        /// 卖
        /// </summary>
        Sell,
        /// <summary>
        /// 买
        /// </summary>
        Buy,
        /// <summary>
        /// 买空
        /// </summary>
        SellShort,
        /// <summary>
        /// 买空
        /// </summary>
        BuyLong
    }
}
